package vn.com.pavibook.utils;


public class DataHelper {
	//admin@#2013
	public static final double UERO_VND = 28558.56; 
	public static enum UserRole {
		ROLE_FOR_ADMIN("ROLE_ADMIN"), ROLE_FOR_WEBSITE("ROLE_CUSTOM"), ROLE_PUBLISHER("ROLE_PUBLISHER");

		private String code;

		private UserRole(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	public static enum Paging{
		OFFSET(10);
		private int value;
		private Paging(int value) {
			this.value = value;
		}
		
		public int getValue(){
			return this.value;
		}
	}
	
	public static enum ResultUpload{
		RESULT_UPLOAD_ERROR("error"), RESULT_UPLOAD_INCORRECT("incorrect"), RESULT_UPLOAD_LIMIT("limit"), RESULT_UPLOAD_SUCCESS("success");
		
		private String code;

		private ResultUpload(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	public static enum ImageFile{
		IMAGE_FILE_MAX_LENGTH("2048000"), IMAGE_FILE_TYPE("gif,png,jpg,jpeg");
		
		private String code;

		private ImageFile(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	public static enum PdfFile{
		PDF_FILE_MAX_LENGTH("unlimit"), PDF_FILE_TYPE("pdf"), EPUB_FILE_TYPE("ePub");
		
		private String code;

		private PdfFile(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	/*public static enum UrlRootFolderUpload{
		URL_ROOT_FOLDER_UPLOAD("C:/Book_Store"),URL_ROOT_FOLDER_UPLOAD_EBOOK("C:/Book_Store/Ebooks"),URL_ROOT_FOLDER_UPLOAD_BANNER("C:/Book_Store/Banners");
		
		private String code;

		private UrlRootFolderUpload(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}*/
	
	public static enum UploadFileStatus{
		UPLOAD_SUCCESS("Tải file thành công!"),UPLOAD_FILE_LIMIT("Dung lượng File quá lớn"),UPLOAD_FILE_FAILURE_FORMAT("Định dạng file không hợp lệ"),UPLOAD_FILE_ERROR("Có lỗi khi tải file"),UPLOAD_EMPTY("Chọn File trước khi upload");
		private String code;

		private UploadFileStatus(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	/*public static enum FolderImageFileUploadInProject{
		EBOOK_IMAGE("/resources/uploads/ebooks"),BANNER_IMAGE("/resources/uploads/banners");
		private String code;

		private FolderImageFileUploadInProject(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}*/
	
	public static enum BookTypeSearch{
		BOOK_TYPE_SEARCH_CATEGORY("category"), BOOK_TYPE_SEARCH_ALL("all"), BOOK_TYPE_SEARCH_NAME("name"), BOOK_TYPE_SEARCH_AUTHOR("author"),;
		private String code;

		private BookTypeSearch(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	public static enum TransactionTypeSearch{
		TRANSACTION_TYPE_SEARCH_CUSTOMER("customer"), TRANSACTION_TYPE_SEARCH_BOOK("book"), TRANSACTION_TYPE_SEARCH_AUTHOR("author"), TRANSACTION_TYPE_SEARCH_PUBLISHER("publisher"),;
		private String code;

		private TransactionTypeSearch(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	
	public static enum TypeStatistic{
		TYPE_STATISTIC_ALL("all"), TYPE_STATISTIC_TODAY("today");
		private String code;

		private TypeStatistic(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
	public static enum TransactionType{
		PAYPAL("paypal"), NGANLUONG("Ngan Luong");
		private String code;
		
		private TransactionType(String code) {
			this.code = code;
		}
		
		public String getCode() {
			return code;
		}
	}
	
	public static enum TypeBanner{
		TYPE_BANNER_BANNER("BANNER"), TYPE_BANNER_ADVERTISING("ADVERTISING");
		private String code;

		private TypeBanner(String code) {
			this.code = code;
		}

		public String getCode() {
			return code;
		}
	}
}
